<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:s="http://jboss.com/products/seam/taglib">
	
	<rich:toolBar height="25" itemSeparator="line">
		<rich:toolBarGroup>
			<ui:insert name="mainControls"/>
		</rich:toolBarGroup>
		<rich:toolBarGroup>
			<ui:insert name="extraControls"/>
		</rich:toolBarGroup>
		<rich:toolBarGroup>
			<ui:insert name="commonControls"/>
		</rich:toolBarGroup>
	</rich:toolBar>
	
	
	<br />
	<ui:insert name="title"/>
	<br />
	<ui:insert name="permitBody" />
	<br />
	
	
	<rich:toolBar height="25" itemSeparator="line">
		<rich:toolBarGroup>
			<ui:insert name="mainControls"/>
		</rich:toolBarGroup>
		<rich:toolBarGroup>
			<ui:insert name="extraControls"/>
		</rich:toolBarGroup>
		<rich:toolBarGroup>
			<ui:insert name="commonControls"/>
			
			<ui:remove>
			<!-- TODO: incluir estos controles en las vistas incluidas -->
			<h:form>
				<a4j:commandButton value="#{messages['options.view_request']}" reRender="transactionData"
				oncomplete="#{rich:component('viewRequestPanel')}.show()"
				rendered="#{view.viewId != '/workflow/transaction/approval.xhtml'}">
					<f:setPropertyActionListener value="#{true}" target="#{viewTransactionHelper.renderTransactionData}" />
				</a4j:commandButton>
				
				<a4j:commandButton value="#{messages['intro2.attacheddocs']}"
				oncomplete="#{rich:component('attachedFilesDlg')}.show()">
				</a4j:commandButton>
			</h:form>
			</ui:remove>
		</rich:toolBarGroup>
	</rich:toolBar>


</ui:composition>
